<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5><span>
                            <vc:i18n name="查询条件"></vc:i18n>
                        </span></h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                            v-on:click="_moreCondition()">{{supplierManageInfo.moreCondition ==
                            true?'隐藏':'更多'}}</button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <select class="custom-select" v-model="supplierManageInfo.conditions.stId">
                                    <option selected value="">请选择供应商类型</option>
                                    <option :value="item.stId" v-for="(item,index) in supplierManageInfo.supplierTypes">
                                        {{item.typeName}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择供应商名称','supplierManage')"
                                    v-model="supplierManageInfo.conditions.supplierName" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择联系人','supplierManage')"
                                    v-model="supplierManageInfo.conditions.personName" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_querySupplierMethod()">
                                <i class="glyphicon glyphicon-search"></i> <span>
                                    <vc:i18n name="查询"></vc:i18n>
                                </span>
                            </button>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4" v-if="supplierManageInfo.moreCondition == true">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择联系电话','supplierManage')"
                                    v-model="supplierManageInfo.conditions.personTel" class=" form-control">
                            </div>
                        </div>
                       
                    </div>


                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5><span>
                            <vc:i18n name="供应商信息" namespace="supplierManage"></vc:i18n>
                        </span></h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddSupplierModal()">
                            <i class="glyphicon glyphicon-plus"></i>
                            <span>
                                <vc:i18n name="添加" namespace="supplierManage"></vc:i18n>
                            </span>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">

                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <!-- <th class="text-center"><span>
                                        <vc:i18n name='编号' namespace='supplierManage'></vc:i18n>
                                    </span></th> -->
                                <th class="text-center"><span>
                                        <vc:i18n name='供应商类型' namespace='supplierManage'></vc:i18n>
                                    </span></th>
                                <th class="text-center"><span>
                                        <vc:i18n name='供应商名称' namespace='supplierManage'></vc:i18n>
                                    </span></th>
                                <th class="text-center"><span>
                                        <vc:i18n name='联系人' namespace='supplierManage'></vc:i18n>
                                    </span></th>
                                <th class="text-center"><span>
                                        <vc:i18n name='联系电话' namespace='supplierManage'></vc:i18n>
                                    </span></th>
                                <th class="text-center"><span>
                                        <vc:i18n name='开始时间' namespace='supplierManage'></vc:i18n>
                                    </span></th>
                                <th class="text-center"><span>
                                        <vc:i18n name='结束时间' namespace='supplierManage'></vc:i18n>
                                    </span></th>
                                <th class="text-center"><span>
                                        <vc:i18n name='创建时间' namespace='supplierManage'></vc:i18n>
                                    </span></th>
                                <th class="text-center"><span>
                                        <vc:i18n name='备注' namespace=' supplierManage'></vc:i18n>
                                    </span></th>
                                <th class="text-center"><span>
                                        <vc:i18n name='操作'></vc:i18n>
                                    </span></th>


                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="supplier in supplierManageInfo.suppliers">
                                <!-- <td class="text-center">{{supplier.supplierId}}</td> -->
                                <td class="text-center">{{supplier.typeName}}</td>
                                <td class="text-center">{{supplier.supplierName}}</td>
                                <td class="text-center">{{supplier.personName}}</td>
                                <td class="text-center">{{supplier.personTel}}</td>
                                <td class="text-center">{{supplier.startTime}}</td>
                                <td class="text-center">{{supplier.endTime}}</td>
                                <td class="text-center">{{supplier.createTime}}</td>
                                <td class="text-center">{{supplier.remark}}</td>
                                <td class="text-center">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openEditSupplierModel(supplier)"><span>
                                                <vc:i18n name='修改'></vc:i18n>
                                            </span></button>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openConfigSupplierModel(supplier)"><span>
                                                <vc:i18n name='配置'></vc:i18n>
                                            </span></button>
                                    </div>
                                   
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeleteSupplierModel(supplier)"><span>
                                                <vc:i18n name='删除'></vc:i18n>
                                            </span></button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="7">
                                    <ul class="pagination float-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>

    <vc:create path="scm/addSupplier" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="scm/editSupplier"></vc:create>
    <vc:create path="scm/deleteSupplier"></vc:create>
    <vc:create path="scm/configSupplier" callBackListener="" callBackFunction=""></vc:create>

</div>